import { applyDecorators } from '@nestjs/common'
import { MessagePattern } from '@nestjs/microservices'

export const createMessagePatternDecorator = (name: string) => () => applyDecorators(
  MessagePattern(name),
)